package com.itheima.Demo;

import java.io.*;

public class Demo字节缓冲流 {
    public static void main(String[] args) throws IOException {
        //字节缓冲输入流
        BufferedInputStream bis  = new BufferedInputStream(new FileInputStream("D:\\Develop\\就业班资料\\Day17\\1234.pdf"));
        //字节缓冲输出流
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("C:\\Users\\97622\\Desktop\\复制.pdf"));
        //一次读取一个字节
        int i;
        while ((i=bis.read())!=-1){
            bos.write(i);
        }
        bis.close();
        bos.close();
    }
}
